package com.sky.example;

import io.swagger.v3.oas.annotations.media.Schema;
//@ApiModel(value = "用户信息", description = "系统用户实体类") 老版本
@Schema(title = "用户信息", description = "系统用户实体类")
public class User {
//    @ApiModelProperty(value = "用户唯一ID", example = "1001", required = true)
    @Schema(description = "用户唯一ID", example = "1001", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long id;

    @Schema(description = "用户名", example = "zhangsan", requiredMode = Schema.RequiredMode.REQUIRED)
    private String username;

    @Schema(description = "邮箱", example = "example@mail.com", nullable = true)
    private String email;

    @Schema(description = "年龄", example = "25")
    private Integer age;

    // Getters and Setters
}



